import request from '@/utils/request'

// 公寓设备关联列表
export function apiRoomApartmentDeviceLists(params: any) {
    return request.get({ url: '/room.room_apartment_device/lists', params })
}

// 添加公寓设备关联
export function apiRoomApartmentDeviceAdd(params: any) {
    return request.post({ url: '/room.room_apartment_device/add', params })
}

// 编辑公寓设备关联
export function apiRoomApartmentDeviceEdit(params: any) {
    return request.post({ url: '/room.room_apartment_device/edit', params })
}

// 快速设置公寓设备
export function apiRoomApartmentDeviceSave(params: any) {
    return request.post({ url: '/room.room_apartment_device/setSave', params })
}

// 删除公寓设备关联
export function apiRoomApartmentDeviceDelete(params: any) {
    return request.post({ url: '/room.room_apartment_device/delete', params })
}

// 公寓设备关联详情
export function apiRoomApartmentDeviceDetail(params: any) {
    return request.get({ url: '/room.room_apartment_device/detail', params })
}

export function apiRoomApartmentDeviceCopy(params: any) {
    return request.post({ url: '/room.room_apartment_device/copyAdd', params })
}
